cls
@echo off

del .\bin\qrcode.exe

setlocal

if exist run.bat goto ok
echo run.bat must be run from its folder
goto end

:ok

rem SET GOARCH=amd64
rem SET GOOS=linux

SET GOBIN=
SET OLDGOPATH=%GOPATH%
SET GOPATH=%~dp0

gofmt -w src

go install qrcode

:end
echo [FINISHED]
echo.

::cls
rem SET QRCODE_MODE=production
SET QRCODE_MODE=development
.\bin\qrcode.exe --PORT=3002 --PPROF_PORT=6667 --MONITOR_PORT=3345
